package com.spring.component.rabbitmq.sender;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author liushihua
 * @since 2018年04月12日
 */
@Component
public class IotbusSender extends BaseSender {
  @Resource
  private RabbitTemplate iotbusRabbitTemplate;
  @Resource
  private ConnectionFactory iotbusConnectionFactory;

  @Override
  public AmqpTemplate getRabbitTemplate() {
    return iotbusRabbitTemplate;
  }

  @Override
  public ConnectionFactory getConnectionFactory() {
    return iotbusConnectionFactory;
  }
}
